//
//  NetworkTools.h
//  TestAFN
//
//  Created by China Dragon on 2023/8/27.
//

#import <AFNetworking/AFNetworking.h>

/// 网络请求枚举
typedef enum : NSUInteger {
    GET,
    POST,
} DemoRequestMethod;

NS_ASSUME_NONNULL_BEGIN

@interface NetworkTools : AFHTTPSessionManager
+(instancetype) sharedTools;
-(void) request:(DemoRequestMethod)method URLString:(NSString *)URLString parameters:(id)parameters finished:(void (^)(id result,  NSError *error)) finished;

@end

NS_ASSUME_NONNULL_END
